//
//  HeadView.m
//  LoveFreshBeen
//
//  Created by vinsent on 16/10/15.
//  Copyright © 2016年 魏根. All rights reserved.
//

#import "HeadView.h"

@implementation HeadView


-(instancetype)init {
    if (self = [super init]) {
        
        self.backgroundColor = [UIColor whiteColor];
    }
    return self;
}

- (void)drawRect:(CGRect)rect {
    // Drawing code
    
    CGFloat kWidth = [UIScreen mainScreen].bounds.size.width;
    
    self.backgroundColor = [UIColor whiteColor];
    UIBezierPath *path = [UIBezierPath bezierPathWithRect:self.bounds];
    [path moveToPoint:CGPointMake(kWidth / 3, 15)];
    [path addLineToPoint:CGPointMake(kWidth / 3, 55)];
    [path moveToPoint:CGPointMake(kWidth / 3 * 2, 15)];
    [path addLineToPoint:CGPointMake(kWidth / 3 * 2, 55)];
    path.lineWidth = 1;
    [[UIColor darkGrayColor] set];
    [path stroke];
}


@end
